

jQuery(function ($) {
    $('.top_list_menu li').click(function () {
        var index = $(this).index();
        $('.top_list_menu li').removeClass('add_color');
        $(this).addClass('add_color');
        $('.swiper_box').eq(index).addClass('open').siblings().removeClass('open');
    });
    var mySwiper = new Swiper('.swiper-container', {
        slidesPerView: 3,
        loop: true,
        observer: true,
        observeParents: true,
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev'
        }
    });
    var mySwiper = new Swiper('.swiper-container_f', {
        slidesPerView: 3,
        loop: true,
        observer: true,
        observeParents: true,
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev'
        }
    });
    var mySwiper = new Swiper('.swiper-container_t', {
        slidesPerView: 3,
        loop: true,
        observer: true,
        observeParents: true,
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev'
        }
    });
    $('.artist_photo_nav li').click(function () {
        var index = $(this).index();
        $('.artist_photo_nav li').removeClass('buff');
        $(this).addClass('buff');
        $('.artist_photo .artist_photo_img').eq(index).addClass('open').siblings().removeClass('open');
    });
    //获取图片的路径放大
    $('.artist_photo img').click(function () {
        var src = $(this).attr('src');
        imgZoomIn(src);
    });
    //放大函数
    function imgZoomIn(src) {
        $("#showImage").attr('src', src);
        $("#showImgModal").modal("show");
    }
});